/**
 * Created by dell on 2017/4/8.
 */
const mongoose = require('mongoose')

const movieSchema = mongoose.Schema({
  title : { type:String, required : true },
  poster : String,
  rating : String,
  introduction : String,
  created_at : { type : Date, default : Date.now },
  update_at : { type : Date, default : Date.now }
})

const MovieModel = module.exports = mongoose.model('Movie',movieSchema);
